//
//  TFHUD.m
//  Video
//
//  Created by iking on 2017/5/4.
//  Copyright © 2017年 iking. All rights reserved.
//

#import "TFHUD.h"

@implementation TFHUD
+ (void)addRemindHUD:(UIView *)view message:(NSString *)message
{
    [MBProgressHUD hideAllHUDsForView:view animated:YES];
    MBProgressHUD *HUD = [[MBProgressHUD alloc] initWithView:view];
    [view addSubview:HUD];
    HUD.labelText = message;
    HUD.mode = MBProgressHUDModeText;
    [HUD showAnimated:YES whileExecutingBlock:^{
        sleep(2.5);
    } completionBlock:^{
        [HUD removeFromSuperview];
    }];
}

@end
